//
//  BaseViewController.h
//  ProjectExtension
//
//  Created by Apple on 2020/1/8.
//  Copyright © 2020 lidianchao. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


//所有controller继承此类


@interface BaseViewController : UIViewController
/**
 *  导航栏左侧的点击方法
 */
- (void)goLeftTOView;

/**
 *  判断是否有网
 */
- (BOOL )isNetworkStatus;

/**
 *  创建没有数据时候的视图
 */
- (UIView *)createNoMoreViewWithFrame:(CGRect )frame;

- (UIView *)createNoMoreViewWithFrame:(CGRect)frame withText:(NSString *)string;
//添加投影
- (void)addShadowInView:(UIView *)view;
//添加投影
- (void)addShadowInView:(UIView *)view superView:(nonnull UIView *)superView;

/**
 *  设置导航栏的左右按钮的属性
 *
 */
- (UIBarButtonItem *)setItemInfoWithTitle:(NSString *)title target:(id)target andSEL:(SEL)action;

- (UIBarButtonItem *)setItemInfoWithImage:(UIImage *)image target:(id)target andSEL:(SEL)action;
@end

NS_ASSUME_NONNULL_END
